package com.mf.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 持仓表
 * </p>
 *
 * @author mf
 * @since 2024-05-18
 */
@Getter
@Setter
@TableName("t_positions")
public class Positions {

@TableId(value = "id", type = IdType.AUTO)
private Integer id;

/**
 * 买入价格
 */
@Schema(description = "买入价格")
private BigDecimal price;

/**
 * 买入金额(买入后不再变动，，等清仓时直接删除数据)
 */
@Schema(description = "买入金额(买入后不再变动，，等清仓时直接删除数据)")
private BigDecimal amount;

/**
 * 买入时间
 */
@Schema(description = "买入时间")
private String date;

/**
 * 股票代码
 */
@Schema(description = "股票代码")
private String dm;

/**
 * 持股数量
 */
@Schema(description = "持股数量")
private Integer quantity;

/**
 * 用户id
 */
@Schema(description = "用户id")
private Integer userId;

private LocalDateTime createdTime;

private LocalDateTime updateTime;
        }